#ifndef __MONKEY_SLIDE_TREE__H__
#define __MONKEY_SLIDE_TREE__H__
#include "cocos2d.h"
#include "cocos-ext.h"
#include "Config.h"
#include "Boa.h"
#include "Monkey.h"
#include "Bough.h"
#include "Fruit.h"
#include "Enemy.h"
#include "Cloud.h"
USING_NS_CC;
USING_NS_CC_EXT;

class Tree : public CCNode
{
	private:

		bool mIsChoose;
		
		Monkey * mMonkey;

		Cloud *mCloud;
		
		CCSprite* mSprite;

	public:

		int initTree;
		CCSize mTreeSize;

		CCSize mSize;

		int flagMoving;

		Tree(Monkey *monkey,Cloud* cloud);

		//virtual void update(float dt);

		// Ham add 1 con tran vao 1 vi tri
		// p : Toa do diem se add doi tuong Boa vao
		void fAddBoa(CCPoint p);

		


		// Generate a ramdom number
		int randomY();

		// Ham chuyen dong len phia tren cua cay
		void fMoveUp();

	inline CCSprite* fGetSprite(){return mSprite;};

		inline void fSetIsChoose(bool ischoose){mIsChoose = ischoose;};
		inline bool fGetIsChoose(){return mIsChoose;};
};

#endif